<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="MobileOptimized" content="400">
<meta name="format-detection" content="telephone=no">
<title>人体每日所需热量计算</title>
<meta name="keywords" content="热量计算,卡路里计算,卡路里换算,人体每日所需热量,卡路里减肥" />
<meta name="description" content="人体每天所需要的热量就是人体基础代谢所需要的基本热量、体力活动所需要的热量和消化食物所需要的热量之和。" />
<!--<link rel="stylesheet" href="../../static/css/kalulistyle.css"  type="text/css" />
<link rel="stylesheet" href="../../static/css/swiper.min.css"  type="text/css" />
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-1.10.1.min.js" type="text/javascript"></script>-->
<link rel="stylesheet"  href="/css/kalulistyle.css" type="text/css" />
<link rel="stylesheet" href="/css/swiper.min.css"  type="text/css" />
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script>
$(function() {
function Mrrl() {
$(".top h1").css({
'width': (parseInt($(".top").width()) - parseInt($(".top_back").width()) - parseInt($(".top_home").width()) - 1) + 'px',
});
//性别的选项的宽度	
var a=$(".count").width();
var b=a-70;
var c=b-45
$(".count select").css("width",b + "px");
$(".tool input").css("width",c + "px");
$(".result .box").width($(".result").width()-18)
}
Mrrl();
//当手机翻转的时候在刷新一次页面
var evt = "onorientationchange" in window ? "orientationchange" : "resize";
window.addEventListener(evt, function() {
Mrrl()
}, false);
})
$(function () {
$(".btn").click(function () {
if ($("#jf_h").val() == '' || $("#jf_h").val() == null || parseInt($("#jf_h").val()) > 230 || parseInt($("#jf_h").val()) < 100) {
alert("请填写身高，且在于100～230cm之间！");
return false;
}
if ($("#jf_a").val() == '' || $("#jf_a").val() == null || parseInt($("#jf_a").val()) < 1 || parseInt($("#jf_a").val()) > 100) {
alert("请填写年龄，且在于1～100之间！");
return false;
} if ($("#jf_w").val() == '' || $("#jf_w").val() == null || parseInt($("#jf_w").val()) < 30 || parseInt($("#jf_w").val()) > 200) {
alert("请填写体重，且介于30～200公斤之间！");
return false;
}
var sg = $("#jf_h").val(), age = $("#jf_a").val(), weight = $("#jf_w").val(), base_num;
var ite2 = document.getElementsByName("xz");
for (var j = 0; j < ite2.length; j++) {
if (ite2[j].checked) {
base_num = ite2[j].value;
}
}
var checkValue = $("#select_id").val();

if (checkValue == "男") {
bmr = Math.ceil((66 + (13.7 * weight) + (5 * sg) - (6.8 * age)) * base_num);

} else {
bmr = Math.ceil((655 + (9.6 * weight) + (1.8 * sg) - (4.7 * age)) * base_num);

}
var a=$(".count").width();
$(".result").css("display", "block")
$(".result .box").width($(".result").width()-18)
$("#bmr").html(bmr);
$(document).scrollTop('500');
})
})
</script>
</head>
<body>
<div class="wrapper">
<div class="top">
<a class="top_back" href="//m.99.com.cn/gongju/"></a>
<h1>
每日热量计算</h1>
<a class="top_home" href="//m.99.com.cn/"></a>
</div>
<div class="lead">
<i></i><i></i><i></i><i></i>
<div class="box">
<p>
想要合理的减肥或者管理自己的身材就得先知道每日所需卡路里，人体每天所需要的热量就是人体基础代谢所需要的基本热量、体力活动所需要的热量和消化食物所需要的热量之和。</p>
<b>（*本工具仅适合正常非孕期健康成年人）</b>
</div>
</div>
<div class="count">
<p class="title">
<i class="i1"></i>请输入您的个人信息</p>
<form class="sex">
<label>
性&nbsp;&nbsp;&nbsp;&nbsp;别</label>
<select id="select_id">
<option value="男">男</option>
<option value="女">女</option>
</select>
</form>
<form class="tool">
<label>
身&nbsp;&nbsp;&nbsp;&nbsp;高</label>
<input type="text" value="180" id="jf_h" onfocus="this.value=''" onblur="if(!value){value=defaultValue;}"
autocomplete="off" onkeyup="value=value.replace(/[^\d.]/g,'')"></input>
<b>厘米</b>
</form>
<form class="tool">
<label>
年&nbsp;&nbsp;&nbsp;&nbsp;龄</label>
<input type="text" id="jf_a" value="20" onfocus="this.value=''" onblur="if(!value){value=defaultValue;}"
autocomplete="off" onkeyup="value=value.replace(/[^\d.]/g,'')"></input>
<b>岁</b>
</form>
<form class="tool">
<label>
体&nbsp;&nbsp;&nbsp;&nbsp;重</label>
<input type="text" id="jf_w" value="60" onfocus="this.value=''" onblur="if(!value){value=defaultValue;}"
autocomplete="off" onkeyup="value=value.replace(/[^\d.]/g,'')"></input>
<b>千克</b>
</form>
<span class="cut"><i></i><i></i></span>
<p class="title">
<i class="i2"></i>选择活动程度</p>
<form class="sport">
<label>
<input type="radio" checked="checked" name="xz" value="1.2" id="xz-1">静态轻微，久坐办公室，几乎不动</label>
<label>
<input type="radio" name="xz" value="1.375" id="xz-2">轻度活动，常坐或很少步行走路</label>
<label>
<input type="radio" name="xz" value="1.55" id="xz-3">中度活动，每日有运动习惯</label>
<label>
<input type="radio" name="xz" value="1.725" id="xz-4">重度活动，劳动工资或是活动量大的生活模式</label>
</form>
<input type="submit" value="计算" class="btn">
</div>
<div id="content" class="result" style="display: none">
<span></span>
<div class="box">
<div class="title">
<b></b>
<h3>
查询结果</h3>
<b></b>
</div>
<p>
你所需的基本热量：<i id="bmr">1983</i>大卡</p>
</div>
</div>
<div style="font-size:16px;">
<div style="width:100%;overflow:hidden;">
<script type="text/javascript" src="//whfpbc.99.com.cn/common/api/js/zxno5u.js?h=culurdze"></script>
</div>
<div id="SOHUCS" sid="900000003"></div>
<script>
(function(){
var expire_time = parseInt((new Date()).getTime()/(5*60*1000));
var head = document.head || document.getElementsByTagName("head")[0] || document.documentElement;
var script_version = document.createElement("script"),script_cyan = document.createElement("script");
script_version.type = script_cyan.type = "text/javascript";
script_version.charset = script_cyan.charset = "utf-8";
script_version.onload = function(){
script_cyan.id = 'changyan_mobile_js';
script_cyan.src = '//changyan.itc.cn/upload/mobile/wap-js/changyan_mobile.js?client_id=cyrmITR82&'
+ 'conf=prod_5e5661768f3c905677b639fed2647ad6&version=' + cyan_resource_version;
head.insertBefore(script_cyan, head.firstChild);
};
script_version.src = '//changyan.sohu.com/upload/mobile/wap-js/version.js?_='+expire_time;
head.insertBefore(script_version, head.firstChild);
})();
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1,
pagination: '.swiper-pagination',
paginationClickable: true,
spaceBetween: 15
})
</script>
</div>
<div style="width:100%;overflow:hidden;">
<script type="text/javascript" src="//whfpbc.99.com.cn/site/g5pph.js?bwocolxx=f"></script>
</div>
<footer>
<nav>
</nav>
</footer>
</div>
</div>
<div>
</div>
<div style="display:none;">
<script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?3dbef4cdd12921cb979bbf3f1907f2e7";var s = document.getElementsByTagNa
me("script")[0]; s.parentNode.insertBefore(hm, s);})();</script>
<script>var _hmt = _hmt || [];(function() {var hm = document.createElement("script");hm.src = "https://hm.baidu.com/hm.js?b0cd40d9ec14af64debb963347995b8e";var s = document.getElementsByTagNa
me("script")[0];s.parentNode.insertBefore(hm, s);})();</script>
</div>
</body>
</html>
